// -*- c++ -*-

#version 330 core

in VS_OUT
  {
    vec3 frag_pos;
    vec3 frag_norm;
    vec3 frag_color;
    vec2 frag_tex_coords;
  }
vs_in;

out vec4 out_color_v4;

layout (std140) uniform Material
{
  vec3 ambient;
  vec3 diffuse;
  vec3 specular;
  float shininess;
}
material;

void main ()
{
  out_color_v4 = vec4(vs_in.frag_color * material.ambient, 1.f);
}
